import request from '@/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/civil-business/people/list',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  });
};

// export const getDetail = (id) => {
//   return request({
//     url: `/api/civil-business/people/detail/${id}`,
//     method: 'get'
//   });
// };

export const remove = (ids) => {
  return request({
    url: '/api/civil-business/people/remove',
    method: 'post',
    params: {
      ids
    }
  });
};

export const add = (row) => {
  return request({
    url: '/api/civil-business/people/submit',
    method: 'post',
    data: row
  });
};

export const update = (row) => {
  return request({
    url: '/api/civil-business/people/submit',
    method: 'post',
    data: row
  });
};

